<template>
  <div class="myprofiledetail-container">
    <!-- 顶部导航 -->
    <van-nav-bar title="我的资料" class="top-nav" @click-left="$router.back()">
      <template #left>
        <i class="iconfont icon-zuofanhui"></i>
      </template>
      <template #right>
        <i class="iconfont icon-shezhi" style="color:#535353"></i>
      </template>
    </van-nav-bar>
    <div class="main">
      <!-- 内容1 -->
      <div class="row-a1">
        <div class="channel">
          <h2 class="tit">
            WW频道
          </h2>
          <span class="msg">
            你可以做任何你想做的事
          </span>
        </div>
        <div class="headpic">
          <van-image
            :src="require('@/assets/头像2.png')"
            fit="contain"
            class="pic"
          >
          </van-image>
          <span class="name">Charlotter</span>
        </div>
        <div class="profile">
          <div class="item">
            <p class="text">关注</p>
            <span class="num">233</span>
          </div>
          <div class="item">
            <p class="text">粉丝</p>
            <span class="num">233</span>
          </div>
          <div class="item">
            <p class="text">收藏</p>
            <span class="num">233</span>
          </div>
        </div>
      </div>
      <!-- 内容2 -->
      <div class="row-a2">
        <h3 class="title">你可能感兴趣的</h3>
        <div class="interest">
          <div class="item">
            <van-image
              :src="require('@/assets/头像3.png')"
              fit="contain"
              class="pic"
            >
            </van-image>
            <span class="name">Eartha<i class="iconfont icon-Like"></i></span>
          </div>
          <div class="item">
            <van-image
              :src="require('@/assets/头像4.png')"
              fit="contain"
              class="pic"
            >
            </van-image>
            <span class="name">Abagael<i class="iconfont icon-Like"></i></span>
          </div>
          <div class="item">
            <van-image
              :src="require('@/assets/头像1.png')"
              fit="contain"
              class="pic"
            >
            </van-image>
            <span class="name">Kaitlyn<i class="iconfont icon-Like"></i></span>
          </div>
          <div class="item">
            <van-image
              :src="require('@/assets/头像5.png')"
              fit="contain"
              class="pic"
            >
            </van-image>
            <span class="name">Madeline<i class="iconfont icon-Like"></i></span>
          </div>
        </div>
      </div>
      <!-- 内容3 -->
      <div class="row-a3">
        <h3 class="title">我的记录</h3>
        <div class="tags">
          <span>所有</span>
          <span>情感</span>
          <span>兴趣的</span>
        </div>
        <div class="records">
          <div class="item">
            <van-image
              :src="require('@/assets/record1.png')"
              fit="contain"
              class="pic"
            ></van-image>
            <div class="bottom">
              <van-image
                :src="require('@/assets/头像2.png')"
                class="headpic"
                fit="contain"
              ></van-image>
              <span class="text">Charlotter</span>
              <i class="iconfont icon-Like"><span>416</span></i>
            </div>
          </div>
          <div class="item">
            <van-image
              :src="require('@/assets/record2.png')"
              fit="contain"
              class="pic"
            ></van-image>
            <div class="bottom">
              <van-image
                :src="require('@/assets/头像2.png')"
                class="headpic"
                fit="contain"
              ></van-image>
              <span class="text">Charlotter</span>
              <i class="iconfont icon-Like"><span>416</span></i>
            </div>
          </div>
          <div class="item">
            <van-image
              :src="require('@/assets/record3.png')"
              fit="contain"
              class="pic"
            ></van-image>
            <div class="bottom">
              <van-image
                :src="require('@/assets/头像2.png')"
                class="headpic"
                fit="contain"
              ></van-image>
              <span class="text">Charlotter</span>
              <i class="iconfont icon-Like"><span>416</span></i>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  // 定义属性
  data() {
    return {}
  },
  // 计算属性，会监听依赖属性值随之变化
  computed: {},
  // 监控data中的数据变化
  watch: {},
  // 方法集合
  methods: {},
  // 生命周期 - 创建完成（可以访问当前this实例）
  created() {},
  // 生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {}
}
</script>

<style lang="less" scoped>
.myprofiledetail-container {
  // nav-bar
  /deep/ .van-hairline--bottom::after {
    border: none !important;
  } //去除下划线
  /deep/ .van-nav-bar__content {
    height: 88px;
    .van-nav-bar__left {
      padding: unset;
      padding-left: 64px;
      .iconfont {
        font-size: 36px;
        line-height: 88px;
      }
    }
    .van-nav-bar__title {
      p {
        font-size: 32px;
        color: #484747;
      }
    }
    .van-nav-bar__right {
      padding: unset;
      padding-right: 58px;
      .iconfont {
        font-size: 40px;
        line-height: 88px;
      }
    }
  }
  // 内容1
  .row-a1 {
    background: url('~@/assets/rose.png') no-repeat right top;
    background-size: 218px 292px;
    margin-top: 10px;
    padding: 0 64px;
    display: flex;
    flex-direction: column;
    .channel {
      text-align: left;
      line-height: 40px;
      .tit {
        font-size: 32px;
        color: #272636;
        font-weight: normal;
        margin: 0;
      }
      .msg {
        font-size: 20px;
        color: #9b9b9b;
        margin: 0;
      }
    }
    .headpic {
      margin-top: 40px;
      margin-bottom: 40px;
      display: flex;
      flex-direction: column;
      text-align: left;
      .pic {
        width: 126px;
        height: 126px;
        margin-bottom: 12px;
      }
      .name {
        font-size: 24px;
        color: #9b9b9b;
      }
    }
    .profile {
      display: flex;
      align-items: center;
      .item {
        margin-right: 110px;
        line-height: 20px;
        .text {
          font-size: 24px;
          color: #272636;
          margin: 0;
        }
        .num {
          font-size: 24px;
          color: #9b9b9b;
          margin: 0;
        }
      }
    }
  }
  // 内容2
  .row-a2 {
    margin-top: 50px;
    padding: 0 64px;
    .title {
      font-weight: normal;
      text-align: left;
      font-size: 20px;
      color: #5a5a5b;
      margin-bottom: 45px;
    }
    .interest {
      display: flex;
      justify-content: space-between;
      .item {
        background-color: #fafafa;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 146px;
        height: 146px;
        .pic {
          width: 86px;
          height: 86px;
          margin-bottom: 11px;
          margin-top: 22px;
        }
        .name {
          font-size: 16px;
          color: #7e7e7e;
          .iconfont {
            margin-left: 20px;
            color: #d8d8d8;
            font-size: 20px;
          }
        }
      }
    }
  }
  // 内容3
  .row-a3 {
    padding-left: 64px;
    .title {
      text-align: left;
      font-weight: normal;
      font-size: 32px;
      color: #5a5a5b;
    }
    .tags {
      font-size: 24px;
      text-align: left;
      color: #676767;
      margin-bottom: 30px;
      span {
        margin-right: 70px;
      }
    }
    .records {
      overflow-x: auto;
      display: flex;
      .item {
        text-align: left;
        margin-right: 30px;
        .pic {
          width: 236px;
          height: 236px;
        }
        .headpic {
          width: 40px;
          height: 40px;
          margin-left: 7px;
        }
        .bottom{
          display: flex;
          align-items: center;
        }
        .iconfont {
          color: #d8d8d8;
          font-size: 20px;
          span {
            font-size: 16px;
            color: #9b9b9b;
          }
        }
        .text {
          margin: 0 40px 0 8px;
          font-size: 16px;
          color: #9b9b9b;
        }
      }
    }
  }
}
</style>
